<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sj:head jqueryui="true" jquerytheme="redmond" />
</head>
<body>
	<s:url id="addressLookupActionUrl" action="addressLookupAction" />
	<s:form id="formAddressLookup" theme="simple" cssClass="yform">
		<fieldset>
			<legend>ADDRESS - LOOKUP</legend>
			<div class="type-text" style="float: clear;">
				<label for="firstName">Post code: </label>
				<s:textfield id="firstName" name="firstName" />
				&nbsp; <label for="surName">Street: </label>
				<s:textfield id="surName" name="surName" />
				&nbsp; <label for="town">Town: </label>
				<s:textfield id="town" name="town" />
			</div>
			<br>
			<div>
				<sj:submit button="true" value="Search Address" />
				<sj:submit button="true" value="None" />
				<sj:submit button="true" value="Clear" />
			</div>
			<br>
			<sjg:grid id="gridtable" caption="Address List" dataType="json"
				href="%{addressLookupActionUrl}" pager="true" gridModel="gridModel"
				rowNum="15" rownumbers="true">
				<sjg:gridColumn name="addressName" index="addressName"	title="Address" sortable="false" />
				<sjg:gridColumn name="postCode" index="postCode" title="Post Code" sortable="false" />
				<sjg:gridColumn name="town" index="town" title="Town"	sortable="false" />
				<sjg:gridColumn name="county" index="county" title="County"	sortable="false" />
				<sjg:gridColumn name="country" index="country" title="Country"	sortable="false" />
			</sjg:grid>
			<br>
			<div>				
				<sj:submit button="true" value="Select" />
				<sj:submit button="true" value="Close" />
			</div>
		</fieldset>
	</s:form>	
</body>
</html>
